regularized_gamma_lower Function

public pure elemental function regularized_gamma_lower(a, x) result(rst)

Computes the regularized lower incomplete gamma function.

The regularized lower incomplete gamma function is defined as:

Remarks

The function is evaluated by means of a series expansion for and a continued fraction otherwise, both carried to convergence and formed in logarithmic space. The routine is therefore well-behaved for arbitrarily large arguments, unlike the unregularized forms whose values overflow.

See Also

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: a

The coefficient value. The value must be positive.

real(kind=real64), intent(in) :: x

The value at which to evaluate the function. The value must be non-negative.

Return Value real(kind=real64)

The function value, which lies on the interval [0, 1].